package com.example.source.spring.aop;

import com.example.source.pojo.AdviserUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("aop")
public class AopController {
    @Autowired
    AdviserUser adviserUser;

    @RequestMapping("div/{a}/{b}")
    public int div(@PathVariable int a, @PathVariable int b) {
        return adviserUser.div(a, b);
    }
}
